<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
</head>
	<body>
		<form action="">
			<a href="ShowAddServlet">添加员工</a>
			<table border="1">
				<tr>
					<th>编号</th>
					<th>姓名</th>
					<th>工作</th>
					<th>奖金</th>
					<th>部门</th>
					<th>所在地</th>
					<th>操作</th>
				</tr>
				<tr th:each="emp:${emps}">
					<td th:text="${emp.empno}"></td>
					<td><a th:text="${emp.ename}" th:href="@{ShowUpdateServlet(id=${emp.empno})}"></a></td>
					<td th:text="${emp.job}"></td>
					<td th:text="${emp.comm}"></td>
					<td th:text="${emp.dept.dname}"></td>
					<td th:text="${emp.dept.loc}"></td>
					<td><a th:href="@{DeleteServlet(id=${emp.empno})}">删除</a> </td>
				</tr>
			</table>
		</form>
	</body>
</html>